﻿<ribbon:RibbonWindow x:Class="DocumentManagement.Views.HomeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="HomeWindow" 
        x:Name="RibbonWindow"
        Width="1024" Height="768" WindowState="Maximized" Loaded="RibbonWindow_Loaded">
    <Grid x:Name="LayoutRoot" >
        <Grid.RowDefinitions>
            <RowDefinition Height="141"/>
            <RowDefinition Height="588*"/>
        </Grid.RowDefinitions>

         <ribbon:Ribbon x:Name="Ribbon" FontSize="14" Background="#FFF8EBBC" BorderBrush="#FFF88A2D" AllowDrop="False" FontFamily="Tahoma" FontWeight="Bold">
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu Background="#FFF8EBBC" BorderBrush="#FFF88A2D" >
                    <ribbon:RibbonApplicationMenuItem Header="ออกจากระบบ"
                                                      x:Name="MenuItemLogOut" Background="#FFF8EBBC" BorderBrush="#FFF88A2D" Click="MenuItemLogOut_Click" />
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:RibbonTab x:Name="HomeTab" 
                              Header="หนังสือ" FontFamily="Tahoma" FontSize="14">
                <ribbon:RibbonGroup x:Name="Group1" >
                    <ribbon:RibbonButton x:Name="DocumentInButton" 
                                         Label="หนังสือเข้า" Click="DocumentInButton_Click" LargeImageSource="/DocumentManagement;component/Images/newspaper_add.png" />
                </ribbon:RibbonGroup>
                <ribbon:RibbonGroup x:Name="Group2">
                    <ribbon:RibbonButton x:Name="DocumentOutButton"
                                         Label="หนังสือออก" Click="DocumentOutButton_Click" LargeImageSource="/DocumentManagement;component/Images/newspaper_go.png" />
                </ribbon:RibbonGroup>

                <ribbon:RibbonGroup x:Name="CreateDocument">
                    <ribbon:RibbonButton x:Name="CreateDocumentButton"
                                         Label="สร้างหนังสือออก"  LargeImageSource="/DocumentManagement;component/Images/newspaper_go.png" Click="CreateDocumentButton_Click" />
                </ribbon:RibbonGroup>

                <!--<ribbon:RibbonGroup x:Name="CreateDocumentIN">
                    <ribbon:RibbonButton x:Name="CreateDocumentINButton"
                                         Label="สร้างหนังสือออกภายใน"  LargeImageSource="/DocumentManagement;component/Images/newspaper_go.png" Click="CreateDocumentINButton_Click" />
                </ribbon:RibbonGroup>-->

            </ribbon:RibbonTab>



            <ribbon:RibbonTab x:Name="HomeTab2" 
                              Header="รายงาน" Height="90" >
                <ribbon:RibbonGroup x:Name="Group3" 
                                    >
                    <ribbon:RibbonButton x:Name="ReportDocument"
                                         Label="รายงานหนังสือ" Click="ReportDocument_Click" LargeImageSource="/DocumentManagement;component/Images/report.png" />
                </ribbon:RibbonGroup>
               
            </ribbon:RibbonTab>
            <!--<ribbon:RibbonTab x:Name="HomeTab3" 
                              Header="ออกจากระบบ" Height="90" >
                <ribbon:RibbonGroup x:Name="Grouplogout" 
                                    Header="Grouplogout">
                    <ribbon:RibbonButton x:Name="Buttonlogout"
                                         Label="ออกจากระบบ" LargeImageSource="/DocumentManagement;component/Images/logout.png" Click="Buttonlogout_Click" />
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>-->
        </ribbon:Ribbon>
        <Grid Name="Content" Margin="0,135,0,0" Grid.RowSpan="2" />
        <TextBlock Height="23" HorizontalAlignment="Left" Margin="472,30,0,0" Name="ShowNameTextBlock"  VerticalAlignment="Top" />
    </Grid>
</ribbon:RibbonWindow>
